package entity

import "time"

type UserEntity struct {
	ID         uint       `json:"id" gorm:"primaryKey"`
	Password   string     `json:"password"`
	NickName   string     `json:"nickName"`
	HeadUrl    string     `json:"headUrl"`
	Birthday   *time.Time `json:"birthday" gorm:"type:date"`
	Address    string     `json:"address"`
	Desc       string     `json:"desc"`
	Gender     string     `json:"gender"`
	Mobile     string     `json:"mobile"`
	Status     int        `json:"status"`
	CreateTime *time.Time `json:"createTime"  gorm:"type:date"`
	UpdateTime *time.Time `json:"updateTime"  gorm:"type:date"`
}

func (UserEntity) TableName() string {
	return "user"
}
